package com.liao.tensquare.constants;


public class LogConstant {

    public static final String[] OPERATOR_LOG_COLUMN = {"id","操作人Id", "操作人名称", "操作类型","操作描述", "消耗时间", "方法名称", "请求类型","url","状态","错误信息","返回结果","操作时间"};
    public static final String[] operTypeStr = {"其他","删除","更新","查询","新增","登录","导入","导出","清空"};
    private static final String[] operStatus = {"成功","失败"};

    public static String getOerTypeStr(Integer index){
        if (index == null || index < 0 || index > 8){
            index = 0;
        }
        return operTypeStr[index];
    }

    public static String getOperStatus(Integer status){
        return operStatus[status];
    }
}
